<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="icon" href="images/icone_site/favicon.jpg">
        <title>Gamekillers - Connexion</title>

        <!-- Bootstrap css-->
        <link href="css/bootstrap.min.css" rel="stylesheet">

        <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
        <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
        <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
        <![endif]-->
        <link href="css/complement.css" rel="stylesheet">
    </head>
    <body>
        <?php
			include_once("accessoires/header.html");
			include_once("accessoires/menu.html");
        ?>
		<div class="page espace_connexion">
			<div class="espace_connexion" style="">
				<div class="thumbnail bloc_connexion ">
					<div>
						<h3 class="underline">S'identifier</h3>
					</div>
					<p>Veuillez vous identifier pour accéder à votre compte :</p>
					<form action="connexion.php" method="post"><!--Quand l'utilisateur aura rempli et valider ce bloc, ça le redirigera vers la page de son profil-->
						<div class="form-group">
							<label for="email">Email</label>
							<input type="email" class="form-control" name="email" id="email" placeholder="email" value="<?php if(isset ($email_user)){echo $email_user;} ?>">
						</div>
						<div class="form-group">
							<label for="password">Mot de passe</label>
							<input type="password" class="form-control" name="password" id="password" placeholder="mot de passe">
						</div>
						<div class="form-group" id="form_checkbox">
							<div class="checkbox">
								<label data-toggle="tooltip" data-placement="bottom" title="Cocher cette case vous permet de rester connecté via cette appareil ! Toutefois veillez bien à vous déconnecter si vous utlisez un appareil publique.">
								<input type="checkbox" id="checkbox" name="stayco" value="1" />  Rester connecter
								</label>
							</div>
						</div>
						<?php 	if(isset($error_connexion)) { ?>
							<div class="alert alert-danger alert-dismissible" role="alert" style="margin-bottom:15px;">
								<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
								<strong><span class="glyphicon glyphicon-alert" aria-hidden="true"></span>&nbsp;</strong> <?php echo $error_connexion; ?>
							</div>
						<?php 	} ?>
						<button type="submit" class="btn btn-default" name="connecter">Se connecter</button>
					</form>
				</div>
			</div>
		</div>
		<?php
            include_once("accessoires/footer.html");//On inclu le footer
        ?>
		<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
		<!-- Include all compiled plugins (below), or include individual files as needed -->
		<script src="js/bootstrap.min.js"></script>
    </body>
</html>